/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo03;

/**
 *2010404104
 * @author 陈长盛
 */
import java.util.*;
public class HomeWorkDemo03 {
   private String name;
    private String phone;
    private String dff;

    public static void set() {
        HomeWorkDemo03 person = new HomeWorkDemo03();
        List p = new ArrayList();
        person.name = "盛哥";
        person.phone = "14795736106";
        person.dff = "广西玉林市";
        p.add(person.name);
        p.add(person.phone);
        p.add(person.dff);
        System.out.println(p.get(0));
        System.out.println(p.get(1));
        System.out.println(p.get(2));
    }

    public static void main(String[] args) {
        set();
    }
}






